CRPEJob::SetNthSortField

Use CRPEJob::SetNthSortField to sort report data according to the specified field and direction.

Syntax
BOOL SetNthSortField (
        short sortFieldN,
        const _TCHAR *field,
        short direction );
Parameters

sortFieldN

Specifies the number of the sort field that you want to set. The first sort field added to the report is field 0, the second is 1, etc. If the report has N sort fields, the function can be called with this parameter between 0 and N-1 to replace an existing sort field. Call the function with this parameter equal to N to add a new sort field.

field

Specifies a pointer to the name of the field to be sorted.

direction

Specifies the sort direction. Use one of the PEP_SF_XXX Sort Order Constants.

Returns

CRPEJob::SetNthTableLocation

Use CRPEJob::SetNthTableLocation to set the table location information for the specified table in the report. This method is typically combined with CRPEJob::GetNthTableLocation, to identify the location of a table and CRPEJob::SetNthTableLocation to change it.

Syntax
BOOL SetNthTableLocation (
        short tableN,
        const CRPETableLocation *tableLocation );
Parameters

tableN

Specifies the 0-based number of the table for which you want to set a new location.

tableLocation

Specifies a pointer to CRPETableLocation.

Returns


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com